package com.liu.text;

import com.liu.mapper.UserMapper;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class springText {
    @Test
    public void text(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(" Application -Config.xml");
        UserMapper userMapper = applicationContext.getBean("UserMapperImpl", UserMapper.class);
        for (int i = 0; i < userMapper.selectUser().size(); i++) {
            System.out.println(userMapper.selectUser().get(i));
        }
    }
}
